<?php
/**
 * Gestion des répertoires de modules multiples
 *
 * @author colinete
 */
class Osml_Application_Resource_Controllermodules extends Zend_Application_Resource_ResourceAbstract
{

    public function init()
    {
        $this->getBootstrap()->bootstrap('frontcontroller');
        $front = $this->getBootstrap()->getResource('frontcontroller');
        $options = $this->getOptions();
        foreach ($options['modules'] as $dir) {
            $front->addModuleDirectory($dir);
        }
    }
}
